﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Profile.aspx.vb" Inherits="Travelling_Alone.Profile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<style type="text/css">
        .style2
        {
            font-size: x-large;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p class="style2">
        User Profile</p>
    <p style="font-size: medium; color:Green">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                    ReadOnly="True" SortExpression="ID" />
                <asp:BoundField DataField="first_name" HeaderText="first_name" 
                    SortExpression="first_name" />
                <asp:BoundField DataField="last_name" HeaderText="last_name" 
                    SortExpression="last_name" />
                <asp:BoundField DataField="email" HeaderText="email" SortExpression="email" />
                <asp:BoundField DataField="nationality" HeaderText="nationality" 
                    SortExpression="nationality" />
                <asp:BoundField DataField="short_description" HeaderText="short_description" 
                    SortExpression="short_description" />
                <asp:BoundField DataField="traveller_name" HeaderText="traveller_name" 
                    SortExpression="traveller_name" />
                <asp:ImageField DataImageUrlField="picture" DataImageUrlFormatString="{0}" 
                    HeaderText="Picture">
                    <ControlStyle CssClass="gridviewphoto" />
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:TravellingAloneConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:TravellingAloneConnectionString.ProviderName %>" 
            SelectCommand="SELECT [ID], [first_name], [last_name], [email], [nationality], [short_description], [traveller_name], [picture] FROM [profile] WHERE ([traveller_name] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="traveller_name" 
                    QueryStringField="TravellerName" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>

    <p>
    
    
        <asp:Button ID="btn_edit_profile" runat="server" Text="Edit Profile" 
            PostBackUrl="~/Edit_Profile.aspx" />
    
    
    </p>
    
</asp:Content>
